<?php


namespace app\common\command;


use app\common\CommandCron;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\facade\Log;

class CardMobile extends Command
{
    protected function configure()
    {
        $this->setName('card')
            ->setDescription('卡片电话转移');
    }

    protected function execute(Input $input, Output $output)
    {
        try {
            CommandCron::cardMobile();
            $output->writeln("card success");
        } catch (\Exception $e) {
            $output->writeln("card false{$e->getMessage()}");
            Log::info("card:状态更新失败~");
        }
    }
}